import http from '@/common/http/index'

const api = {
    //测试接口
    getUsers(params) {
        return new Promise((resolve, reject) => {
            http({
                method: 'GET',
                url: '/api/users',
                params: params
            })
            .then(res => {
                resolve(res)
            })
            .catch(err => {
                reject(err)
            })
        })
    },
}

export default api